import VueRouter from 'vue-router'

import home from './vue/home.vue'
import mamber from './vue/mamber.vue'
import shopcar from './vue/shopcar.vue'
import search from './vue/search.vue'
import news from './vue/news/news.vue'
import newsInfo from './vue/news/newsInfo.vue'
import photoList from './vue/photos/photolist.vue'
import photoInfo from './vue/photos/photoInfo.vue'
import goodList from './vue/goods/goodslist.vue'
import goodsInfo from './vue/goods/goodsInfo.vue'

const router=new VueRouter({
  routes:[
    {path:'/',redirect:'/home'},
    {path:'/home',component:home},
    {path:'/mamber',component:mamber},
    {path:'/shopcar',component:shopcar},
    {path:'/search',component:search},
    {path:'/home/news',component:news},
    {path:'/home/news/info/:id',component:newsInfo},
    {path:'/home/photolist',component:photoList},
    {path:'/home/photoinfo/:id',component:photoInfo},
    {path:'/home/goodslist',component:goodList},
    {path:'/home/goodsinfo/:id',component:goodsInfo,name:'goodsInfo'}
  ],
  linkActiveClass:'mui-active'
})
export default router